<?php
defined('_JEXEC') or die;

JHtml::_('behavior.keepalive');
JHtml::_('formbehavior.chosen', 'select');

$params = $this->form->getFieldsets('params');

?>

<form action="<?php echo JRoute::_('index.php?option=com_doska&layout=edit&id='.(int) $this->item->id); ?>" method="post" id="adminForm" name="adminForm" class="form-validate">

<?php echo JHtml::_('bootstrap.startTabSet','myTab',array('active'=>'general'));?>


<?php echo JHtml::_('bootstrap.addTab','myTab','general',JText::_('COM_DOSKA_CATEGORY_CONTENT'));?>

<div class="row-fluid">
	<div class="span9">
		<?php echo JLayoutHelper::render('joomla.edit.title_alias', $this); ?>
		<?php echo $this->form->getField('parentid')->renderField();?>
	</div>
	
	<div class="span3">
		<?php echo JLayoutHelper::render('joomla.edit.global', $this); ?>
	</div>
	
	<div>
		<?php echo $this->form->getField('id')->renderField();?>
	</div>
	
</div>

<?php echo JHtml::_('bootstrap.endTab');?>

<?php echo JLayoutHelper::render('joomla.edit.params',$this)?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'permissions', JText::_('COM_DOSKA_FIELDSET_RULES', true)); ?>
				<?php echo $this->form->getInput('rules'); ?>
				<?php echo $this->form->getInput('asset_id'); ?>
				
			<?php echo JHtml::_('bootstrap.endTab'); ?>


<?php echo JHtml::_('bootstrap.endTabSet');?>
<input type="hidden" name="task" value="category.edit" />
	<?php echo JHtml::_('form.token'); ?>


</form>

